package com.xinghuo.usercare.controller;

import com.xinghuo.usercare.dao.domain.User;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
 
import java.util.HashMap;
import java.util.Map;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class TestController {

	 
 
	@RequestMapping(value = "/doTest.do")
	public String doTest() {

		 

		System.out.println("Test success.......");
		return "success";
	}
	@RequestMapping(value = "/getUser.do")
	public String doGetUser(Map<String, Object> map) {

		 
		return "getUser";
	}
        @RequestMapping("/employe/list") 
	public ModelAndView list(){
		Map<String,Object> map =new HashMap<String,Object>();
                User user = new User();
                user.setCode("dddd");
                
                user.setEmail("d@qq.com");
		 map.put("user", user);
		return new ModelAndView("login",map); //访问WEB-INF/jsp/employe/employeList.jsp
	}
}
